<template>
    <h1>Info</h1>
    {{count}}
</template>

<script lang="ts">
    import {defineComponent, ref} from 'vue';

    export default defineComponent({
        setup() {
            const count = ref(2);

            const handle = () => {
                console.log('这是子组件的方法呦！');
            }

            return {
                count, 
                handle
            }
        }
    })

</script>

<style lang="scss" scoped>

</style>